<?php

namespace app\index\controller;

use think\Cache;
use think\Controller;
use think\Db;
use think\Loader;
use think\Request;
use think\Validate;

class Api extends Controller
{
    /**
     * 根据权限分组id获取该分组下的用户id
     * */
    public function getAuthGroupUserId()
    {
        $id = Request()->param('id');
        
        $list = Db::name('auth_group_access')->where(['group_id' => $id])->select();
        
        return implode(',', array_column($list, 'uid'));
    }
}
